/*!    version: 1.0.0   -   updated: 2017-09-13 11:44:16 */
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 4);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.default = function (key) { return "GroupInstruction" + ":" + key; };


/***/ }),
/* 1 */
/***/ (function(module, exports) {

module.exports = Vue;

/***/ }),
/* 2 */
/***/ (function(module, exports) {

module.exports = VueClassComponent;

/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
function translate(key) {
    var text = this.locale[arguments[0]] || 'ERROR';
    if (arguments.length > 1 && text !== 'ERROR') {
        var params_1 = [].slice.call(arguments, 1);
        text = text.replace(/\{(\d+)\}/g, function (m, $1) { return params_1[+$1]; });
    }
    return text;
}
exports.i18nMixin = {
    beforeCreate: function () {
        (this.$options.methods || (this.$options.methods = {}))['$i18n'] = translate;
    }
};


/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
__webpack_require__(5);
__webpack_require__(9);
__webpack_require__(11);
__webpack_require__(13);


/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function($$AllocateKey) {
Object.defineProperty(exports, "__esModule", { value: true });
var Vue = __webpack_require__(1);
var vue_class_component_1 = __webpack_require__(2);
var i18n_1 = __webpack_require__(3);
var list_1 = __webpack_require__(6);
var Modal = (function (_super) {
    __extends(Modal, _super);
    function Modal() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.pagination = {
            size: 6,
            current: 0
        };
        return _this;
    }
    Object.defineProperty(Modal.prototype, "convertedSubmitted", {
        get: function () {
            return this.submitted.map(function (item) {
                var data = (item.data && item.data[0]) || { value: '' };
                return {
                    studentId: item.groupId,
                    studentName: item.groupName,
                    _renderData: {
                        type: 'image',
                        value: data.value
                    }
                };
            });
        },
        enumerable: true,
        configurable: true
    });
    Modal = __decorate([
        vue_class_component_1.MidwareComponent({
            key: $$AllocateKey('Modal'),
            public: true,
            template: __webpack_require__(8),
            components: {
                'common-modal': 'Common:Modal',
                'component-stats-list': 'SubjectiveStats:List',
                'component-gqp-list': list_1.default
            },
            props: {
                shown: Boolean,
                submitted: {
                    type: Array,
                    default: []
                },
                unsubmitted: {
                    type: Array,
                    default: []
                },
                locale: Object
            },
            mixins: [i18n_1.i18nMixin]
        })
    ], Modal);
    return Modal;
}(Vue));
exports.default = Modal;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)["default"]))

/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function($$AllocateKey) {
Object.defineProperty(exports, "__esModule", { value: true });
var Vue = __webpack_require__(1);
var vue_class_component_1 = __webpack_require__(2);
var i18n_1 = __webpack_require__(3);
var List = (function (_super) {
    __extends(List, _super);
    function List() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    List = __decorate([
        vue_class_component_1.MidwareComponent({
            key: $$AllocateKey('List'),
            public: true,
            template: __webpack_require__(7),
            components: {
                'common-list': 'Common:BaseList'
            },
            mixins: [i18n_1.i18nMixin],
            props: {
                list: Array,
                page: Object
            }
        })
    ], List);
    return List;
}(Vue));
exports.default = List;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)["default"]))

/***/ }),
/* 7 */
/***/ (function(module, exports) {

module.exports = "<common-list :data=list :page=page><template scope=props><div class=group__item--simple :class=\"{ui_btn_active: props.status === 'offline'}\"><i class=\"g-icon g-icon-pic\"></i><div class=itemsim-info><p class=itemsim-title>{{ props.props.groupName }}</p><p class=itemsim-details>{{ $i18n('label.group.members', props.groupMemberNum ) }} | {{ $i18n('label.group.leader') }} {{ props.groupLeaderName }}</p></div></div></template></common-list>"

/***/ }),
/* 8 */
/***/ (function(module, exports) {

module.exports = "<common-modal class=\"com_pop com_pop_mid pop_group_commit\" :options=\"{ closeButton: 'both', masked: true, shown: shown}\" @close=\"$emit('close')\"><div class=pop_wrap><div class=content style=height:100%><div class=group__layout><div class=group__slip--wrap><div class=group__dialog><div class=group__dialog--title><span class=title-t>{{ locale['label.status.committed'] }} ({{ $i18n('label.group.count', submitted.length)}})</span></div><div class=group__dialog--content><component-stats-list :data=convertedSubmitted :page=pagination></component-stats-list></div></div></div><div class=group__card--wrap><div class=group__dialog><div class=group__dialog--title><span class=title-t>{{ locale['label.status.uncommitted'] }} ({{ $i18n('label.group.count', unsubmitted.length) }})</span></div><div class=group__dialog--content><div class=group__content--simple><component-gqp-list :list=unsubmitted :page=pagination></component-gqp-list></div></div></div></div></div></div></div></common-modal>"

/***/ }),
/* 9 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function($$AllocateKey) {
Object.defineProperty(exports, "__esModule", { value: true });
var Vue = __webpack_require__(1);
var vue_class_component_1 = __webpack_require__(2);
var i18n_1 = __webpack_require__(3);
var ProgressBar = (function (_super) {
    __extends(ProgressBar, _super);
    function ProgressBar() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(ProgressBar.prototype, "progress", {
        get: function () {
            return this.current / this.total * 100 + '%';
        },
        enumerable: true,
        configurable: true
    });
    ProgressBar = __decorate([
        vue_class_component_1.MidwareComponent({
            key: $$AllocateKey('ProgressBar'),
            public: true,
            template: __webpack_require__(10),
            props: {
                text: String,
                total: Number,
                current: Number,
                shown: Boolean,
                locale: Object
            },
            mixins: [i18n_1.i18nMixin]
        })
    ], ProgressBar);
    return ProgressBar;
}(Vue));
exports.default = ProgressBar;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)["default"]))

/***/ }),
/* 10 */
/***/ (function(module, exports) {

module.exports = "<div class=waiting_container_black><div class=compop><div class=pop_mask></div><div class=popmain><a href=javascript:; class=pop_close @click=\"$emit('cancel')\"></a><div class=\"staticinfo clearfix\"><span class=\"poptxt floatleft stop_exam_tip_text\">{{ $i18n('label.collecting') }} (<span class=finishNum>{{ current }}</span>/{{ total }})</span></div><div class=bar_container><div class=bar :style=\"{ width: progress }\"></div></div></div></div></div>"

/***/ }),
/* 11 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function($$AllocateKey) {
Object.defineProperty(exports, "__esModule", { value: true });
var Vue = __webpack_require__(1);
var vue_class_component_1 = __webpack_require__(2);
var Modal = (function (_super) {
    __extends(Modal, _super);
    function Modal() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Modal.prototype.buttonClick = function (name) {
        if (this.$listeners && this.$listeners['button-click']) {
            this.$emit('button-click', { name: name });
        }
    };
    Modal = __decorate([
        vue_class_component_1.MidwareComponent({
            key: $$AllocateKey('Dialog'),
            public: true,
            template: __webpack_require__(12),
            components: {},
            props: {
                content: String,
                buttons: {
                    type: Array,
                    default: []
                }
            }
        })
    ], Modal);
    return Modal;
}(Vue));
exports.default = Modal;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)["default"]))

/***/ }),
/* 12 */
/***/ (function(module, exports) {

module.exports = "<div class=comui_big_pop><div class=comui_pop_notebook_bg><div class=comui_pop_notebook_bg_papper><div class=comui_pop_papper_main><div class=pop_confirm_text v-html=content></div></div><div class=pop_footer_btns v-if=buttons.length><a class=com_btn_round2 href=javascript:; v-for=\"item in buttons\" :class=item.style @click=clickButton(item.name)><span class=text_box>{{item.text}}</span></a></div></div></div></div>"

/***/ }),
/* 13 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
/* WEBPACK VAR INJECTION */(function($$AllocateKey) {
Object.defineProperty(exports, "__esModule", { value: true });
var Vue = __webpack_require__(1);
var vue_class_component_1 = __webpack_require__(2);
var i18n_1 = __webpack_require__(3);
var Modal = (function (_super) {
    __extends(Modal, _super);
    function Modal() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.listPage = Object.freeze({
            size: 6
        });
        _this.previewPage = {
            size: 3,
            current: 0
        };
        _this.currentIndex = -1;
        _this.showDetail = false;
        return _this;
    }
    Object.defineProperty(Modal.prototype, "previews", {
        get: function () {
            if (this.isSame) {
                return [];
            }
            else {
                return this.list.splice(this.previewPage.current, this.previewPage.current + this.previewPage.size);
            }
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(Modal.prototype, "detailUrl", {
        get: function () {
            var detail = this.list[this.currentIndex];
            if (detail) {
                return (detail && detail._renderData && detail._renderData) || '';
            }
            return '';
        },
        enumerable: true,
        configurable: true
    });
    Modal.prototype.clickItem = function (_a) {
        var id = _a.id;
        this.currentIndex = this.list.find(function (item) { return item.studentId === id; });
        this.showDetail = true;
    };
    Modal.prototype.flipPreviews = function (_a) {
        var current = _a.current;
        this.previewPage.current = current;
    };
    Modal.prototype.close = function () {
        this.showDetail = false;
    };
    Modal = __decorate([
        vue_class_component_1.MidwareComponent({
            key: $$AllocateKey('QuestionList'),
            name: "QuestionList",
            public: true,
            template: __webpack_require__(14),
            components: {
                'component-stats-list': 'SubjectiveStats:List',
                'common-page': 'Common:Pagination',
                'common-modal': 'Common:Modal'
            },
            props: {
                list: Array,
                isSame: Boolean,
                locale: Object
            },
            mixins: [i18n_1.i18nMixin]
        })
    ], Modal);
    return Modal;
}(Vue));
exports.default = Modal;

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0)["default"]))

/***/ }),
/* 14 */
/***/ (function(module, exports) {

module.exports = "<div class=com_wrapper><div class=com_layout_header><div class=upload>{{ $i18n('label.title') }}</div></div><div class=com_layout_container><component-stats-list :data=list :page=listPage @click-item=clickItem></component-stats-list></div><common-modal class=\"com_pop com_pop_mid pop_group\" :options=\"{ closeButton: 'both', masked: true, shown: showDetail}\" @close=close><div class=pop_wrap><div class=content style=\"height: 100%;\"><div class=group__layout :class=\"{ task_same: isSame }\"><div class=group__tasklist--wrap v-if=previews.length><component-stats-list :data=previews></component-stats-list><common-page :data=previewPage @flip=flipPreviews></common-page></div><div class=group__taskview--wrap><div class=group__taskview--content><div class=\"student_screen student_screen_pic_bg\"><img :src=detailUrl></div></div></div></div></div></div></common-modal></div>"

/***/ })
/******/ ]);